
package com.kweative.model.column;

import com.kweative.model.Table;
import com.kweative.model.sql.SQLDataType;

/**
 *
 * @author henrik
 */
public class ColumnInteger<T extends Table> extends Column<ColumnInteger,T> {

    public ColumnInteger(String name) {
        this();
		setName(name);
    }

	public ColumnInteger() {
		super(Integer.class);
		setSQLDataType(SQLDataType.INT);
	}

    @Override
    public Integer unserialize(String value) {
        return Integer.valueOf(value);
    }

    @Override
    public String serialize(Object value) {
        return String.valueOf(value);
    }
}
